{% extends 'base.html' %}

{% block title %}Viewing the {{ category.title }} category{% endblock title %}

{% block header %}
<a href="?view={{ current.view }}&amp;{% include 'views.include.html' %}" ><img height="48" style="vertical-align: middle; float: left !important;" src="{{ site.icon }}" alt="Go back to the home page" /></a> <a style="color: orange !important;" href="?category={{ category.name }}&amp;object={{ object.name }}&amp;view={{ current.view }}&amp;{% include 'views.include.html' %}&amp;page=1"><img style="vertical-align: middle;" width="48" src="{{ category.icon }}" alt="{{ category.title }} category icon" /></a> {{ category.title }}
{% endblock header %}

{% block content %}
{{ category.long_description|safe }}
<p />
<a style="cursor: pointer;" onclick="history.go(-1)"><img src="{{ site.httppath }}/Data/images/back.png" alt="Back"/></a>
<a href="?category={{ category.name }}&amp;view=rows&amp;{% include 'views.include.html' %}"> 
<img src="{{ site.httppath }}/Data/images/rows.png" alt="Switch to row view!"/></a>
</div>
</div>
</div>
<p />
<center>
{% include 'page_numbers.html' %}
<table>
<tr>

{% for object in objects.object_list %}
<td>
<table class="table" cellpadding="0" cellspacing="0">
<tr>
<th style="text-align: center;">
<a href="?category={{ category.name }}&amp;object={{ object.name }}&amp;view={{ current.view }}&amp;{% include 'views.include.html' %}&amp;page={{ current.page }}">{{ object.title }}</a>
</th>
</tr>
<tr style="background: none !important;">
<td>
<a href="?category={{ category.name }}&amp;object={{ object.name }}&amp;view={{ current.view }}&amp;{% include 'views.include.html' %}&amp;page={{ current.page }}"><img src="{{ object.thumbnail }}" alt="{{ object.title }} preview" /></a>
</td>
</tr>
</table>
</td>
{% if object.end_of_row %}
{% if object.end_of_page %}
</tr>
{% else %}
</tr>
<tr>
{% endif %}
{% else %}
{% endif %}
 {% endfor %}
 
</table>
</center>
{% endblock content %}